<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_history".
 *
 * @property int $id
 * @property string $openid openid
 * @property string|null $data_log 用户数据
 * @property string|null $created_at
 */
class SetHistory extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_history';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['data_log'], 'string'],
            [['created_at'], 'safe'],
            [['openid'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'openid' => 'Openid',
            'data_log' => 'Data Log',
            'created_at' => 'Created At',
        ];
    }
}
